package com.bigtree.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bigtree.domain.Book;
import org.springframework.stereotype.Service;

//切忌加上泛型
@Service
public interface BookService extends IService<Book>{
    //根据id查询一条数据
    Book getById1(int id);

    //分页查询
    Page<Book> getPage(int currentPage,int pageSize);


    //模糊查询，交给分页查询
    // 传过来一个多少页，一页多少数量，
    Page<Book> getPageLike(int current,int size,Book book);


}
